package com.geek.aop;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class ProfileConfig {

    @Bean
    @Profile("development")
    public DemoBean developmentDemoBean(){
        return new DemoBean("from development profile");
    }

    @Bean
    @Profile("production")
    public DemoBean productionDemoBean(){
        return new DemoBean("from production profile");
    }




}
